<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class SecurityCar extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::dropIfExists('security_car');
        Schema::create('security_car',function (Blueprint $table){
            $table->comment = "安保车辆表";
            $table->increments('id')->comment("ID");
            $table->string("name")->comment("车主姓名");
            $table->string("phone")->comment("联系方式");
            $table->string("license_plate")->comment("车牌号");
            $table->tinyInteger("type")->comment("车辆类型");       // 车辆类型，1：汽车，2：电动车，3：自行车，4：摩托车
            $table->integer("province_id")->comment("省份");
            $table->integer("city_id")->comment("城市");
            $table->integer("district_id")->comment("区域");
            $table->integer('create_time')->comment("创建时间");
            $table->integer('update_time')->comment("更新时间");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
